package small.common.designPattern.behavioral.observer.event;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @author jinzhou
 * @data 2023/5/9 17:57
 */
public abstract class Event {

    private static final AtomicLong SEQUENCE = new AtomicLong(0);

    private final long sequence = SEQUENCE.getAndIncrement();

    public String sequence() {
        return String.valueOf(this.sequence);
    }
}
